<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>瀑布流响应式布局</title>
		<link rel="stylesheet" type="text/css" href="swiper-3.4.2.min.css">
		<style type="text/css"> 
		/*li*/
			/*注释哦1*/
		    .swiper-container {
			    width: 600px;
			    height: 300px;
			}  
		</style>
		
	</head>
	<body>
		<div class="swiper-container">
		    <div class="swiper-wrapper">
		        <div class="swiper-slide">Slide 1</div>
		        <div class="swiper-slide">Slide 2</div>
		        <div class="swiper-slide">Slide 3</div>

		        <div class="swiper-slide">Slide 3</div>

		        <div class="swiper-slide">Slide 3</div>

		        <div class="swiper-slide">Slide 3</div>

		        <div class="swiper-slide">Slide 3</div>

		        <div class="swiper-slide">Slide 3</div>

		        <div class="swiper-slide">Slide 3</div>

		        <div class="swiper-slide">Slide 3</div>

		    </div>
		    <!-- 如果需要分页器 -->
		    <div class="swiper-pagination"></div>
		    
		    <!-- 如果需要导航按钮 -->
		    <div class="swiper-button-prev"></div>
		    <div class="swiper-button-next"></div>
		    
		    <!-- 如果需要滚动条 -->
		    <div class="swiper-scrollbar"></div>
		</div>
	</body>
	<script type="text/javascript" src="swiper-3.4.2.min.js"></script>
	<script> 

		function test(){
			var a = 10 
			function fn(){
				console.log(a);
				console.log("123");
			}
			return fn;
		}
		var f1 = test()
		var f2 = test();



		function test(){
			var a = 10;
			function f1(){
				console.log(a)
			}
			function f2(){
				console.log(a);
			}
			return [f1, f2];
		}
		var farr = test();
		var f1 = farr[0];
		var f2 = farr[1];


		var mySwiper = new Swiper ('.swiper-container', {
			initialSlide:1,
		    direction: 'vertical',
		    loop: true,
		    
		    // 如果需要分页器
		    pagination: '.swiper-pagination',
		    
		    // 如果需要前进后退按钮
		    nextButton: '.swiper-button-next',
		    prevButton: '.swiper-button-prev',
		    
		    // 如果需要滚动条
		    scrollbar: '.swiper-scrollbar'
	  	})        
	  </script>

</html>